import request from '../http.js'

const api = {
   'getShareCrmList' :	'/personal/getShareCrmList',   // 获取我的客户列表
   'getShareUserList': '/personal/getShareUserList',	// 获取我的会员列表
   'getCommissionRecord': '/personal/getCommissionRecord',	// 获取佣金记录 
   'getWithdrawalRecord': '/personal/getWithdrawalRecord',	// 获取提现记录
   'getUserInfo': '/personal/getUserInfo',	// 我的佣金
   'save': '/personal/save',					// 保存信息
   'withdrawalCommission': '/personal/withdrawalCommission',	// 提现
   'getShareInfo': '/personal/getShareInfo',	// 获取分享信息
   'sharegetList' : '/crm/shareConfig/getList',	// 获取分享列表
   'countShare' : '/crm/shareConfig/countShare', // 统计分享次数
   'pageList': '/persons/note/pageList',	// 获取笔记列表
   'dictpage': '/dictData/system/page',	// 获取记事本分类列表
   'persave': '/persons/note/save',	// 记事本保存
   'perdel':'/persons/note/delete',	// 记事本删除
   'saveUpdate': '/dictData/system/saveOrUpdate',	// 字典添加
   
}


//字典添加
export function saveUpdate(data){ 
	return request({
		url: api.saveUpdate,
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}

//记事本删除
export function perdel(data){ 
	return request({
		url: api.perdel,
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}


//记事本保存
export function persave(data){ 
	return request({
		url: api.persave,
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}

//获取笔记列表
export function dictpage(data){ 
	return request({
		url: api.dictpage,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//获取笔记列表
export function pageList(data){ 
	return request({
		url: api.pageList,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//统计分享次数
export function countShare(data){ 
	return request({
		url: api.countShare + '?id=' + data,
		method: 'GET',
		contentType:'application/json',
		// data:data
	})
}


//获取分享信息
export function sharegetList(data){ 
	return request({
		url: api.sharegetList,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//获取分享信息
export function getShareInfo(data){ 
	return request({
		url: api.getShareInfo,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//提现
export function withdrawalCommission(data){ 
	return request({
		url: api.withdrawalCommission,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//保存信息
export function save(data){ 
	return request({
		url: api.save,
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}

//我的佣金
export function getUserInfo(data){ 
	return request({
		url: api.getUserInfo,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//获取提现记录
export function getWithdrawalRecord(data){ 
	return request({
		url: api.getWithdrawalRecord,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//获取佣金记录
export function getCommissionRecord(data){ 
	return request({
		url: api.getCommissionRecord,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//获取我的会员列表
export function getShareUserList(data){ 
	return request({
		url: api.getShareUserList,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//获取我的客户列表
export function getShareCrmList(data){ 
	return request({
		url: api.getShareCrmList,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}








